package com.agent.auth.config;

import com.agent.common.handler.JwtAuthHandler;
import com.agent.common.utils.JwtUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * Auth 配置类
 */
@Configuration
public class AuthConfig {

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

    @Bean
    public JwtAuthHandler jwtAuthHandler() {
        return new JwtAuthHandler(new JwtUtils());
    }
}